
package com.gopay.common.domain.ptbank.outvo;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonMethod;
import org.codehaus.jackson.annotate.JsonProperty;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 基础返回报文
 * BaseResponse.java
 * 2016年4月19日
 * @author donghuijun
 *  www.gopay.com.cn Inc.All rights reserved.
 */
@JsonAutoDetect(JsonMethod.FIELD) 
public abstract class BaseResponse implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4587882235179161005L;
	/**
	 * 应答码(0-成功,1-失败)
	 */
	@JSONField(ordinal = 1)
	@JsonProperty("RSPCODE")
	protected String rspCode;
	/**
	 * 应答描述
	 */
	@JSONField(ordinal = 2)
	@JsonProperty("RSPCODEDESC")
	protected String rspCodeDesc;
	
	@Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.DEFAULT_STYLE);
    }

	public String getRspCode() {
		return rspCode;
	}

	public void setRspCode(String rspCode) {
		this.rspCode = rspCode;
	}

	public String getRspCodeDesc() {
		return rspCodeDesc;
	}

	public void setRspCodeDesc(String rspCodeDesc) {
		this.rspCodeDesc = rspCodeDesc;
	}
	
	
}
